package io.afu.nginxhelper.dto.common;

import io.afu.nginxhelper.constant.NgxConst;

import java.util.List;

/**
 * if 还没想好该怎么处理，就直接保存if的list吧。
 */
public class If {

    public final String KEY = "if";

    private List<String> statement;

    public List<String> getStatement() {
        return statement;
    }

    public void setStatement(List<String> statement) {
        this.statement = statement;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        for (String str:statement){
            sb.append(str).append(NgxConst.NEW_LINE);
        }
        return sb.toString();
    }
}
